package cnpm02.j2ee.group3.ui.facalets;

import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;

@Name(ExampleModalPanel.COMPONENT_NAME)
public class ExampleModalPanel {
	public final static String COMPONENT_NAME = "exampleModalPanel";
	
	private String text="uiui";
	
	@In
	private ModalPanelAction modalPanelAction;
	
	public void showDialog(String name) {
		modalPanelAction.show(name);
	}
	
	public void hideDialog(String name) {
		modalPanelAction.hide(name);
	}
	
	public boolean isShowed(String name) {
		return modalPanelAction.isShowed(name);
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getText() {
		return text;
	}
}
